all:client server
client:protobuf_client.cc request.pb.cc ../proto/codec.cc
	g++ -std=c++11 $^ -o $@ -I../include -lpthread -L../lib -lmuduo_base -lmuduo_net -lz -lprotobuf
server:protobuf_server.cc request.pb.cc ../proto/codec.cc
	g++ -std=c++11 $^ -o $@ -I../include -lpthread -L../lib -lmuduo_net -lmuduo_base -lz -lprotobuf
.PHONY:clean
clean:
	rm -rf client server